#pragma once

#include <iostream>

using namespace std;



template<typename T>
class Complex
{
	friend ostream & operator<< <T> (ostream &out, Complex &r);
public:
	Complex(T a, T b);
	

	Complex(const Complex& c);
	

	~Complex();

public:
	Complex operator+ (Complex& r);

	Complex& operator= (Complex& r);

	//private:
	void printc()
	{
		cout<<"z = "<<a<<" + "<<b<<"i"<<endl;
	}


private:
	T a;
	T b;
};

